package com.ruoyi.banner.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * Banner管理业务对象 banner
 *
 * @author ruoyi
 * @date 2022-08-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BannerBo extends BaseEntity {

    /**
     * bannerID
     */
    @NotNull(message = "bannerID不能为空", groups = { EditGroup.class })
    private Long bannerId;

    /**
     * banner图片路径
     */
    @NotBlank(message = "banner图片路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bannerImg;

    /**
     * banner描述
     */
    @NotBlank(message = "banner描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bannerDec;

    /**
     * 状态 0：启用 1：禁用
     */
    @NotNull(message = "状态 0：启用 1：禁用不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long state;


}
